/*
 * @Author: c
 * @Date: 2024-01-09 12:24:59
 * @LastEditTime: 2024-04-01 05:26:08
 * @LastEditors: c
 * @Description: 
 * @FilePath: \music-web-backend\src\core\music\song\song.module.ts
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AlbumModule } from '../album/album.module';
import { ArtistModule } from '../artist/artist.module';
import { DSong } from './dao/song.dao';
import { Song } from './entities/song.entity';
import { SongController } from './song.controller';
import { SongService } from './song.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Song]),

    forwardRef(() => ArtistModule),
    forwardRef(() => AlbumModule),
  ],
  controllers: [SongController],
  providers: [SongService, DSong],
  exports: [SongService]
})
export class SongModule { }
